package org.tobaccomain.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.tobaccomain.pojo.dto.PageExtra;
import org.tobaccomain.pojo.dto.TobaccoInfo;
import org.tobaccomain.pojo.entity.TobaccoBasic;

import java.util.List;

@Mapper
public interface ExtraMapper {

    //备料信息添加
    void insertExtra(TobaccoBasic tobaccoBasic);

    //备料信息删除
    void deleteExtra(Long id);

    //备料信息修改
    void updateExtra(TobaccoBasic tobaccoBasic);

    //备注信息修改
    void updateExtraInfo(TobaccoInfo extraInfo);

    //备料信息分页查询
    List<TobaccoBasic> selectExtraList(PageExtra pageExtra);

    //获取分页查询总记录数
    Integer count(PageExtra pageExtra);

    //根据id查询备料信息
    TobaccoBasic selectExtraById(Integer id);

    //备料信息上传
    void uploadExtra(List<TobaccoBasic> list);
}
